From 65fd68d6d08396f0a3caf8f40bf281ba72ee77e9 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Thu, 24 May 2007 09:14:43 +0100 Subject: [PATCH] LINUX/x86_64: Ensure that the initial page tables allow userspace mappings of the vsyscall page. This matches native behaviour by setting the U bit on the L2-L4 page table entries and controlling access using the L1 entries. Signed-off-by: Ian Campbell --- linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c b/linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c index c1b582c4c9..55fcd37af5 100644 --- a/linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c +++ b/linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c @@ -580,7 +580,7 @@ void __init xen_init_pt(void) /* Construct mapping of initial pte page in our own directories. */ init_level4_pgt[pgd_index(__START_KERNEL_map)] = - mk_kernel_pgd(__pa_symbol(level3_kernel_pgt)); + mk_kernel_pgd(__pa_symbol(level3_kernel_pgt) | _PAGE_USER); level3_kernel_pgt[pud_index(__START_KERNEL_map)] = __pud(__pa_symbol(level2_kernel_pgt) | _KERNPG_TABLE); -- 2.30.2